/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#ifndef __LUA_LISTELEMENT_H__
#define __LUA_LISTELEMENT_H__
#pragma once

#include "../../Core/LuaControl.h"

namespace DuiLib {

class LuaListElement : public LuaControl
{
    SDLUA_CLASS_DECLARE(LuaListElement);

    void SetEnabled(bool bEnable);

    int GetIndex();
    void SetIndex(int iIndex);

    int GetOwner(LuaState *L);
    //void SetOwner(CControlUI* pOwner);
    void SetVisible(bool bVisible);

    bool IsSelected();
    bool Select(bool bSelect);
    bool SelectMulti(bool bSelect);
    bool IsExpanded();
    bool Expand(bool bExpand);

    void Invalidate();
    bool Activate();
};

}

#endif //__LUA_LISTELEMENT_H__